home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group96b.txt
/
000016_icon-group-sender _Thu Oct 10 18:02:15 1996.msg
< prev
next >
Wrap
Internet Message Format
|
1997-01-02
|
2KB
Received: by cheltenham.cs.arizona.edu; Fri, 11 Oct 1996 16:30:29 MST
To: icon-group@cs.arizona.edu
Date: Thu, 10 Oct 1996 18:02:15 GMT
From: bezeau@jupiter.sun.csd.unb.ca (Larry Bezeau)
Message-Id: <bezeau.63.844970535@jupiter.csd.unb.ca>
Organization: New Brunswick Centre for Educational Administration
Sender: icon-group-request@cs.arizona.edu
Subject: Re: Parsing the Icon command line
Errors-To: icon-group-errors@cs.arizona.edu
>>h:\>c:\dos\command.com /c v:\cmdline.exe "A B" \"C D\"
>That doesn't perform the test you want, since by invoking command.com
>with /c on your shell's command line, you're giving your shell a chance
>to munge the arguments *before* it passes them to command.com, which
>then munges them further before passing them to Icon, which then munges
>them further before passing them to your cmdline program. To test
>command.com for real, just invoke it as a subshell (use the command
> command
Agreed, now that you point it out. I therefore repeated the test
as you suggested and got the same results as shown below. This test
was done on a different computer that is strictly DOS, no OS/2.
h:\>command
Microsoft(R) MS-DOS(R) Version 6.20
(C)Copyright Microsoft Corp 1981-1993.
H:\>v:\cmdline.exe "A B" \"C D\"
A
B
C D
This should not be surprising since 4DOS is supposed to be compatible
with and a superset of MS-DOS. For reference purposes, the only
operative statement of the ICON program, cmdline, is as follows:
every write(&output,C[1 to *C])
where C is the list of command line arguments. The concern among
others is the reduction of the three blanks between C and D to one.
Larry Bezeau@UNB.Ca